home *** CD-ROM | disk | FTP | other *** search
/ Asia X / Asia X.iso / pc / shared.dir / 00155.ls < prev    next >
Encoding:
Text File  |  1995-08-23  |  3.5 KB  |  115 lines

  1. on startMovie
  2.   global gSong, gSlideSpeed, g_num_pics, spriteList, cursorList, doll_right, doll_left, doll_help, doll_option, doll_quit, doll_auto, g_auto_state, g_doll_state, g_help_state, g_option_state, g_quit_state, Help4, Help3, Help2, Help1, Quit4, Quit3, Quit2, Quit1, Option4, Option3, Option2, Option1, Doll9, Doll8, Doll7, Doll6, Doll5, Doll4, Doll3, Doll2, Doll1, auto4, auto3, auto2, auto1
  3.   put gSong, gSlideSpeed
  4.   set Help4 to the number of cast "Help.4"
  5.   set Help3 to the number of cast "Help.3"
  6.   set Help2 to the number of cast "Help.2"
  7.   set Help1 to the number of cast "Help.1"
  8.   set Quit4 to the number of cast "Quit.4"
  9.   set Quit3 to the number of cast "Quit.3"
  10.   set Quit2 to the number of cast "Quit.2"
  11.   set Quit1 to the number of cast "Quit.1"
  12.   set auto4 to the number of cast "auto.4"
  13.   set auto3 to the number of cast "auto.3"
  14.   set auto2 to the number of cast "auto.2"
  15.   set auto1 to the number of cast "auto.1"
  16.   set Option4 to the number of cast "Option.4"
  17.   set Option3 to the number of cast "Option.3"
  18.   set Option2 to the number of cast "Option.2"
  19.   set Option1 to the number of cast "Option.1"
  20.   set Doll9 to the number of cast "Doll.9"
  21.   set Doll8 to the number of cast "Doll.8"
  22.   set Doll7 to the number of cast "Doll.7"
  23.   set Doll6 to the number of cast "Doll.6"
  24.   set Doll5 to the number of cast "Doll.5"
  25.   set Doll4 to the number of cast "Doll.4"
  26.   set Doll3 to the number of cast "Doll.3"
  27.   set Doll2 to the number of cast "Doll.2"
  28.   set Doll1 to the number of cast "Doll.1"
  29.   set g_help_state to 4
  30.   set g_doll_state to 5
  31.   set g_quit_state to 4
  32.   set g_option_state to 4
  33.   set g_auto_state to 4
  34.   puppetSprite(11, 1)
  35.   puppetSprite(10, 1)
  36.   puppetSprite(9, 1)
  37.   puppetSprite(8, 1)
  38.   puppetSprite(7, 1)
  39.   set doll_right to the number of cast "doll_right"
  40.   set doll_left to the number of cast "doll_left"
  41.   set doll_help to the number of cast "doll_help"
  42.   set doll_option to the number of cast "doll_option"
  43.   set doll_quit to the number of cast "doll_quit"
  44.   set doll_auto to the number of cast "doll_auto"
  45.   set spriteList to list(0)
  46.   set cursorList to list(0)
  47.   set button to [133 + 144, 141 + 144]
  48.   set the cursor of sprite 12 to [129 + 144, 137 + 144]
  49.   set the cursor of sprite 13 to [130 + 144, 138 + 144]
  50.   set the cursor of sprite 14 to button
  51.   set the cursor of sprite 15 to [132 + 144, 140 + 144]
  52.   set the cursor of sprite 16 to [131 + 144, 139 + 144]
  53.   set the cursor of sprite 17 to button
  54.   set the cursor of sprite 18 to button
  55.   set the cursor of sprite 19 to button
  56.   set the cursor of sprite 20 to button
  57. end
  58.  
  59. on saveSprites
  60.   set spriteList to list(0)
  61.   repeat with i = 1 to 20
  62.     setAt(spriteList, i, the visible of sprite i)
  63.   end repeat
  64.   return spriteList
  65. end
  66.  
  67. on clearCursors
  68.   repeat with i = 1 to 20
  69.     set the cursor of sprite i to 0
  70.   end repeat
  71. end
  72.  
  73. on saveCursors
  74.   set cursorList to list(0)
  75.   repeat with i = 1 to 20
  76.     setAt(cursorList, i, the cursor of sprite i)
  77.   end repeat
  78.   return cursorList
  79. end
  80.  
  81. on restoreCursors cursorList
  82.   repeat with i = 1 to 20
  83.     set the cursor of sprite i to getAt(cursorList, i)
  84.   end repeat
  85. end
  86.  
  87. on restoreSprites spriteList
  88.   repeat with i = 1 to 20
  89.     set the visible of sprite i to getAt(spriteList, i)
  90.   end repeat
  91. end
  92.  
  93. on newSongUpdate newSong
  94.   global gSong
  95.   if gSong <> newSong then
  96.     set gSong to newSong
  97.   end if
  98. end
  99.  
  100. on newSlideSpeed newspeed
  101.   global gSlideSpeed
  102.   if gSlideSpeed <> newspeed then
  103.     set gSlideSpeed to newspeed
  104.   end if
  105. end
  106.  
  107. on mouseClick
  108.   puppetSound("Single Click")
  109.   updateStage()
  110.   repeat while soundBusy(0) or soundBusy(1)
  111.     nothing()
  112.   end repeat
  113.   puppetSound(0)
  114. end
  115.